import request from '@/utils/http';

// 分页获取短语
export const replyPhrasePage = (data: object) => {
  return request.post('/replyPhrase/page', data);
};

// 添加短语
export const replyPhraseAdd = (data: object) => {
  return request.post('/replyPhrase/add', data);
};
// 根据id删除短语
export const replyPhraseDeleteById = (data: object) => {
  return request.post('/replyPhrase/deleteById', data);
};

// 根据id修改短语
export const replyPhraseEdit = (data: object) => {
  return request.post('/replyPhrase/edit', data);
};

// 查询规则
export const userReplyRuleGet = () => {
  return request.post('/userReplyRule/get');
};

// 修改规则
export const userReplyRuleEdit = (data: object) => {
  return request.post('/userReplyRule/edit', data);
};

// 添加规则
export const userReplyRuleAdd = (data: object) => {
  return request.post('/userReplyRule/add', data);
};
